/*
 * @Description:
 * @Author: 姚泽毅
 * @Date: 2021-08-31 08:45:53
 * @LastEditTime: 2021-09-02 11:55:55
 */
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import store from './redux/store'
//
import { Provider } from "react-redux";

import "antd/dist/antd.css";
ReactDOM.render(
	<React.StrictMode>
		<Provider store={store}>
			<App />
		</Provider>
	</React.StrictMode>,
	document.getElementById("root")
);
// 监听redux中状态的改变，如果state改变进行render重新diff渲染
// store.subscribe(() => {
//     ReactDOM.render(<App />, document.getElementById("root"))
// })
